const express = require('express')
const router = express.Router()
const { DataCSVController } = require('../controller/data_csv')
const authMiddleware = require('../middleware/auth')

router.post(
  '/v1/dataCSV/upload',
  authMiddleware,
  DataCSVController.dataCSVUpload
)
router.post('/v1/dataCSV/exec', authMiddleware, DataCSVController.dataCSVByID)

router.post('/v1/dataCSV/add', authMiddleware, DataCSVController.dataCSVAdd)
router.put('/v1/dataCSV/edit', authMiddleware, DataCSVController.dataCSVUpd)
router.delete('/v1/dataCSV/del', authMiddleware, DataCSVController.dataCSVDel)
router.get('/v1/dataCSV/list', authMiddleware, DataCSVController.dataCSVList)
router.get('/v1/dataCSV/all', authMiddleware, DataCSVController.dataCSVAllList)
module.exports = router
